<template>
  <j-select-biz-component
    :value="value"

    name="用户"
    displayKey="wxName"

    :returnKeys="returnKeys"
    :listUrl="url.list"
    :columns="columns"
    :multiple="true"
    queryParamText="昵称"
    queryParamCode="wxName"
    v-on="$listeners"
    v-bind="$attrs"
  />
</template>
<script>
  import JSelectBizComponent from './JSelectBizComponent/index'

  export default {
    name: 'JSelectGamesUser',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        returnKeys: ['wxName', 'id'],
        url: { list: '/gameuser/gameUser/list' },
        columns: [
          { title: '昵称', dataIndex: 'wxName', align: 'center', width: 120 },
          { title: '真实姓名', dataIndex: 'realName', align: 'center', width: 120 },
          { title: '电话', dataIndex: 'phone', align: 'center', width: 120 },
          { title: '身份', dataIndex: 'identity_dictText', align: 'center', width: 120 },
        ]
      }
    },
    /*computed: {
      attrs() {
        return Object.assign(this.default, this.$attrs)
      }
    }*/
  }
</script>

<style lang="less" scoped></style>